package com.pine.common.beans.pineframework.request;

import com.pine.common.beans.request.SuperQueryRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 系统审批申请表查询请求体
 * </p>
 *
 * @author pine manage
 * @since 2024-10-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(title = "SysApprovalApplicationQueryRequest", description = "系统审批申请表查询请求体")
public class SysApprovalApplicationQueryRequest extends SuperQueryRequest {

    @Serial
    private static final long serialVersionUID = 8091999247583388891L;

    /**
     * 自增主键
     */
    @Schema(title = "id", description = "主键")
    private Long id;

    /**
     * 审批ID
     */
    @Schema(title = "approvalId", description = "审批ID")
    private String approvalId;

    /**
     * 申请名称
     */
    @Schema(title = "name", description = "申请名称")
    private String name;

    /**
     * 申请类型
     */
    @Schema(title = "type", description = "申请类型")
    private String type;

    /**
     * 申请内容
     */
    @Schema(title = "content", description = "申请内容")
    private String content;

    /**
     * 附件地址
     */
    @Schema(title = "attachmentUrl", description = "附件地址")
    private String attachmentUrl;

    /**
     * 申请状态:0=待提交,1=待审批,2=已审批,3=已拒绝,4=已完成,5=已取消
     */
    @Schema(title = "status", description = "申请状态:0=待提交,1=待审批,2=已审批,3=已拒绝,4=已完成,5=已取消")
    private List<Integer> status;

    /**
     * 创建时间-起始
     */
    @Schema(title = "createTimeStart", description = "创建时间-起始")
    private LocalDateTime createTimeStart;
    /**
     * 创建时间-截止
     */
    @Schema(title = "createTimeEnd", description = "创建时间-截止")
    private LocalDateTime createTimeEnd;

    /**
     * 创建人ID
     */
    @Schema(title = "createUserId", description = "创建人ID")
    private Long createUserId;

    /**
     * 创建人名称
     */
    @Schema(title = "createUsername", description = "创建人名称")
    private String createUsername;

    /**
     * 更新时间-起始
     */
    @Schema(title = "updateTimeStart", description = "更新时间-起始")
    private LocalDateTime updateTimeStart;
    /**
     * 更新时间-截止
     */
    @Schema(title = "updateTimeEnd", description = "更新时间-截止")
    private LocalDateTime updateTimeEnd;

    /**
     * 更新人ID
     */
    @Schema(title = "updateUserId", description = "更新人ID")
    private Long updateUserId;

    /**
     * 审批人ID
     */
    @Schema(title = "approvalUserId", description = "审批人ID")
    private Long approvalUserId;

    /**
     * 审批人名称
     */
    @Schema(title = "approvalUsername", description = "审批人名称")
    private String approvalUsername;

    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;
}
